Struct runa_core::client::traits::ClientParts
source · #[non_exhaustive]pub struct ClientParts<'a, C: Client> {
pub server_context: &'a C::ServerContext,
pub objects: &'a mut C::ObjectStore,
pub connection: &'a mut C::Connection,
pub event_dispatcher: &'a mut C::EventDispatcher,
}
Expand description
Members of a client context
See Client::as_mut_parts
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.server_context: &'a C::ServerContext
The server context
objects: &'a mut C::ObjectStore
The object store
connection: &'a mut C::Connection
The connection to the client
event_dispatcher: &'a mut C::EventDispatcher
The event dispatcher
Implementations§
source§impl<'a, C: Client> ClientParts<'a, C>
impl<'a, C: Client> ClientParts<'a, C>
sourcepub fn new(
server_context: &'a C::ServerContext,
objects: &'a mut C::ObjectStore,
connection: &'a mut C::Connection,
event_dispatcher: &'a mut C::EventDispatcher
) -> Self
pub fn new( server_context: &'a C::ServerContext, objects: &'a mut C::ObjectStore, connection: &'a mut C::Connection, event_dispatcher: &'a mut C::EventDispatcher ) -> Self
Create a new ClientParts
Trait Implementations§
source§impl<'a, C: Debug + Client> Debug for ClientParts<'a, C>where
C::ServerContext: Debug,
C::ObjectStore: Debug,
C::Connection: Debug,
C::EventDispatcher: Debug,
impl<'a, C: Debug + Client> Debug for ClientParts<'a, C>where C::ServerContext: Debug, C::ObjectStore: Debug, C::Connection: Debug, C::EventDispatcher: Debug,
Auto Trait Implementations§
impl<'a, C> RefUnwindSafe for ClientParts<'a, C>where <C as Client>::Connection: RefUnwindSafe, <C as Client>::EventDispatcher: RefUnwindSafe, <C as Client>::ObjectStore: RefUnwindSafe, <C as Client>::ServerContext: RefUnwindSafe,
impl<'a, C> Send for ClientParts<'a, C>where <C as Client>::Connection: Send, <C as Client>::EventDispatcher: Send, <C as Client>::ObjectStore: Send, <C as Client>::ServerContext: Sync,
impl<'a, C> Sync for ClientParts<'a, C>where <C as Client>::Connection: Sync, <C as Client>::EventDispatcher: Sync, <C as Client>::ObjectStore: Sync, <C as Client>::ServerContext: Sync,
impl<'a, C> Unpin for ClientParts<'a, C>
impl<'a, C> !UnwindSafe for ClientParts<'a, C>
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.