Skip to main content

Request

Enum Request 

Source
pub enum Request<N: AsRef<str>, C: AsRef<[u8]>> {
Show 15 variants Identify(RequestIdentify<N>), Open(RequestOpen<N>), Close(RequestClose), Metadata(RequestMetadata), Setmeta(RequestSetmeta), List(RequestList), Make(RequestMake<N>), Remove(RequestRemove<N>), Read(RequestRead), Write(RequestWrite<C>), Seek(RequestSeek), Tell(RequestTell), Copy(RequestCopy), Link(RequestLink<N>), Drop(RequestDrop),
}

Variants§

Trait Implementations§

Source§

impl<N: Clone + AsRef<str>, C: Clone + AsRef<[u8]>> Clone for Request<N, C>

Source§

fn clone(&self) -> Request<N, C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Debug + AsRef<str>, C: Debug + AsRef<[u8]>> Debug for Request<N, C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, N, C> Deserialize<'de> for Request<N, C>
where N: Deserialize<'de> + AsRef<str>, C: Deserialize<'de> + AsRef<[u8]>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>, E: AsRef<[Entry<N>]>> From<Request<N, C>> for Message<N, C, E>

Source§

fn from(value: Request<N, C>) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestClose> for Request<N, C>

Source§

fn from(value: RequestClose) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestCopy> for Request<N, C>

Source§

fn from(value: RequestCopy) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestDrop> for Request<N, C>

Source§

fn from(value: RequestDrop) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestIdentify<N>> for Request<N, C>

Source§

fn from(value: RequestIdentify<N>) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestLink<N>> for Request<N, C>

Source§

fn from(value: RequestLink<N>) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestList> for Request<N, C>

Source§

fn from(value: RequestList) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestMake<N>> for Request<N, C>

Source§

fn from(value: RequestMake<N>) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestMetadata> for Request<N, C>

Source§

fn from(value: RequestMetadata) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestOpen<N>> for Request<N, C>

Source§

fn from(value: RequestOpen<N>) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestRead> for Request<N, C>

Source§

fn from(value: RequestRead) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestRemove<N>> for Request<N, C>

Source§

fn from(value: RequestRemove<N>) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestSeek> for Request<N, C>

Source§

fn from(value: RequestSeek) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestSetmeta> for Request<N, C>

Source§

fn from(value: RequestSetmeta) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestTell> for Request<N, C>

Source§

fn from(value: RequestTell) -> Self

Converts to this type from the input type.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> From<RequestWrite<C>> for Request<N, C>

Source§

fn from(value: RequestWrite<C>) -> Self

Converts to this type from the input type.
Source§

impl<N: Hash + AsRef<str>, C: Hash + AsRef<[u8]>> Hash for Request<N, C>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<N: PartialEq + AsRef<str>, C: PartialEq + AsRef<[u8]>> PartialEq for Request<N, C>

Source§

fn eq(&self, other: &Request<N, C>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<N, C> Serialize for Request<N, C>
where N: Serialize + AsRef<str>, C: Serialize + AsRef<[u8]>,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>, E: AsRef<[Entry<N>]>> TryFrom<Message<N, C, E>> for Request<N, C>

Source§

type Error = Message<N, C, E>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Message<N, C, E>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestClose

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestCopy

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestDrop

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestIdentify<N>

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestLink<N>

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestList

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestMake<N>

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestMetadata

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestOpen<N>

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestRead

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestRemove<N>

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestSeek

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestSetmeta

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestTell

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> TryFrom<Request<N, C>> for RequestWrite<C>

Source§

type Error = Request<N, C>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request<N, C>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<N: Eq + AsRef<str>, C: Eq + AsRef<[u8]>> Eq for Request<N, C>

Source§

impl<N: AsRef<str>, C: AsRef<[u8]>> StructuralPartialEq for Request<N, C>

Auto Trait Implementations§

§

impl<N, C> Freeze for Request<N, C>
where N: Freeze, C: Freeze,

§

impl<N, C> RefUnwindSafe for Request<N, C>

§

impl<N, C> Send for Request<N, C>
where N: Send, C: Send,

§

impl<N, C> Sync for Request<N, C>
where N: Sync, C: Sync,

§

impl<N, C> Unpin for Request<N, C>
where N: Unpin, C: Unpin,

§

impl<N, C> UnsafeUnpin for Request<N, C>
where N: UnsafeUnpin, C: UnsafeUnpin,

§

impl<N, C> UnwindSafe for Request<N, C>
where N: UnwindSafe, C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,