pub struct ServerEnd<P, T = Channel> { /* private fields */ }
Expand description
The server end of a protocol.
Implementations§
Trait Implementations§
Source§impl<P, T> EncodableOption for ServerEnd<P, T>where
T: EncodableOption,
P: 'static,
impl<P, T> EncodableOption for ServerEnd<P, T>where
T: EncodableOption,
P: 'static,
Source§type EncodedOption = ServerEnd<P, <T as EncodableOption>::EncodedOption>
type EncodedOption = ServerEnd<P, <T as EncodableOption>::EncodedOption>
The wire type for the optional value.
Source§impl<E, P, T> EncodeOption<E> for ServerEnd<P, T>where
E: ?Sized,
P: 'static,
T: EncodeOption<E>,
impl<E, P, T> EncodeOption<E> for ServerEnd<P, T>where
E: ?Sized,
P: 'static,
T: EncodeOption<E>,
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<E, P, T> EncodeRef<E> for ServerEnd<P, T>where
E: ?Sized,
P: 'static,
T: EncodeRef<E>,
impl<E, P, T> EncodeRef<E> for ServerEnd<P, T>where
E: ?Sized,
P: 'static,
T: EncodeRef<E>,
Source§fn encode_ref(
&self,
encoder: &mut E,
out: &mut MaybeUninit<Self::Encoded>,
) -> Result<(), EncodeError>
fn encode_ref( &self, encoder: &mut E, out: &mut MaybeUninit<Self::Encoded>, ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
Source§impl<P, T, U> FromWireOption<ServerEnd<P, U>> for ServerEnd<P, T>where
P: 'static,
T: FromWireOption<U>,
U: Wire,
impl<P, T, U> FromWireOption<ServerEnd<P, U>> for ServerEnd<P, T>where
P: 'static,
T: FromWireOption<U>,
U: Wire,
Source§fn from_wire_option(wire: ServerEnd<P, U>) -> Option<Self>
fn from_wire_option(wire: ServerEnd<P, U>) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl<P, T, U> FromWireOptionRef<ServerEnd<P, U>> for ServerEnd<P, T>where
P: 'static,
T: FromWireOptionRef<U>,
U: Wire,
impl<P, T, U> FromWireOptionRef<ServerEnd<P, U>> for ServerEnd<P, T>where
P: 'static,
T: FromWireOptionRef<U>,
U: Wire,
Source§fn from_wire_option_ref(wire: &ServerEnd<P, U>) -> Option<Self>
fn from_wire_option_ref(wire: &ServerEnd<P, U>) -> Option<Self>
Converts the given
wire
reference to an option of this type.Auto Trait Implementations§
impl<P, T> Freeze for ServerEnd<P, T>where
T: Freeze,
impl<P, T> RefUnwindSafe for ServerEnd<P, T>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, T> Send for ServerEnd<P, T>
impl<P, T> Sync for ServerEnd<P, T>
impl<P, T> Unpin for ServerEnd<P, T>
impl<P, T> UnwindSafe for ServerEnd<P, T>where
T: UnwindSafe,
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.