pub enum PlusRequest {
Item(Option<String>),
Attributes,
DirectoryAttributes,
}Expand description
What a Gopher+ retrieval asks for.
Variants§
Item(Option<String>)
+: the item itself. The optional representation names one of the
alternates the item’s +VIEWS block advertises.
Attributes
!: this item’s attribute blocks.
DirectoryAttributes
$: the attribute blocks of every item in a directory.
Implementations§
Source§impl PlusRequest
impl PlusRequest
Sourcepub fn from_token(token: &str) -> Option<Self>
pub fn from_token(token: &str) -> Option<Self>
Read a token back, which is what a server does with the third field.
$ may carry a filter of requested block names ($+VIEWS+ABSTRACT);
that filter is advisory, so it is accepted and not modelled.
Trait Implementations§
Source§impl Clone for PlusRequest
impl Clone for PlusRequest
Source§fn clone(&self) -> PlusRequest
fn clone(&self) -> PlusRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlusRequest
impl Debug for PlusRequest
impl Eq for PlusRequest
Source§impl PartialEq for PlusRequest
impl PartialEq for PlusRequest
impl StructuralPartialEq for PlusRequest
Auto Trait Implementations§
impl Freeze for PlusRequest
impl RefUnwindSafe for PlusRequest
impl Send for PlusRequest
impl Sync for PlusRequest
impl Unpin for PlusRequest
impl UnsafeUnpin for PlusRequest
impl UnwindSafe for PlusRequest
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