pub struct EndpointResource<T, P> { /* private fields */ }
Expand description
A resource associated with an endpoint.
Implementations§
Source§impl<T, P> EndpointResource<T, P>
impl<T, P> EndpointResource<T, P>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the underlying resource.
Trait Implementations§
Source§impl<T, P> Encodable for EndpointResource<T, P>where
T: Encodable,
impl<T, P> Encodable for EndpointResource<T, P>where
T: Encodable,
Source§impl<T, P> EncodableOption for EndpointResource<T, P>where
T: EncodableOption,
impl<T, P> EncodableOption for EndpointResource<T, P>where
T: EncodableOption,
Source§type EncodedOption<'buf> = EndpointResource<<T as EncodableOption>::EncodedOption<'buf>, P>
type EncodedOption<'buf> = EndpointResource<<T as EncodableOption>::EncodedOption<'buf>, P>
The wire type for the optional value.
Source§impl<E, T, P> Encode<E> for EndpointResource<T, P>
impl<E, T, P> Encode<E> for EndpointResource<T, P>
Source§impl<E, T, P> EncodeOption<E> for EndpointResource<T, P>where
E: ?Sized,
T: EncodeOption<E>,
impl<E, T, P> EncodeOption<E> for EndpointResource<T, P>where
E: ?Sized,
T: EncodeOption<E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut E,
slot: Slot<'_, Self::EncodedOption<'_>>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut E, slot: Slot<'_, Self::EncodedOption<'_>>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and slot.
Source§impl<T, P, U> TakeFrom<EndpointResource<U, P>> for EndpointResource<T, P>where
T: TakeFrom<U>,
impl<T, P, U> TakeFrom<EndpointResource<U, P>> for EndpointResource<T, P>where
T: TakeFrom<U>,
Source§fn take_from(from: &mut EndpointResource<U, P>) -> Self
fn take_from(from: &mut EndpointResource<U, P>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Auto Trait Implementations§
impl<T, P> Freeze for EndpointResource<T, P>where
T: Freeze,
impl<T, P> RefUnwindSafe for EndpointResource<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for EndpointResource<T, P>
impl<T, P> Sync for EndpointResource<T, P>
impl<T, P> Unpin for EndpointResource<T, P>
impl<T, P> UnwindSafe for EndpointResource<T, P>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