Struct librespot_protocol::mercury::MercuryReply[][src]

pub struct MercuryReply {
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
    // some fields omitted


unknown_fields: UnknownFieldscached_size: CachedSize


impl MercuryReply[src]

pub fn new() -> MercuryReply[src]

pub fn get_status_code(&self) -> i32[src]

pub fn clear_status_code(&mut self)[src]

pub fn has_status_code(&self) -> bool[src]

pub fn set_status_code(&mut self, v: i32)[src]

pub fn get_status_message(&self) -> &str[src]

pub fn clear_status_message(&mut self)[src]

pub fn has_status_message(&self) -> bool[src]

pub fn set_status_message(&mut self, v: String)[src]

pub fn mut_status_message(&mut self) -> &mut String[src]

pub fn take_status_message(&mut self) -> String[src]

pub fn get_cache_policy(&self) -> MercuryReply_CachePolicy[src]

pub fn clear_cache_policy(&mut self)[src]

pub fn has_cache_policy(&self) -> bool[src]

pub fn set_cache_policy(&mut self, v: MercuryReply_CachePolicy)[src]

pub fn get_ttl(&self) -> i32[src]

pub fn clear_ttl(&mut self)[src]

pub fn has_ttl(&self) -> bool[src]

pub fn set_ttl(&mut self, v: i32)[src]

pub fn get_etag(&self) -> &[u8][src]

pub fn clear_etag(&mut self)[src]

pub fn has_etag(&self) -> bool[src]

pub fn set_etag(&mut self, v: Vec<u8>)[src]

pub fn mut_etag(&mut self) -> &mut Vec<u8>[src]

pub fn take_etag(&mut self) -> Vec<u8>[src]

pub fn get_content_type(&self) -> &str[src]

pub fn clear_content_type(&mut self)[src]

pub fn has_content_type(&self) -> bool[src]

pub fn set_content_type(&mut self, v: String)[src]

pub fn mut_content_type(&mut self) -> &mut String[src]

pub fn take_content_type(&mut self) -> String[src]

pub fn get_body(&self) -> &[u8][src]

pub fn clear_body(&mut self)[src]

pub fn has_body(&self) -> bool[src]

pub fn set_body(&mut self, v: Vec<u8>)[src]

pub fn mut_body(&mut self) -> &mut Vec<u8>[src]

pub fn take_body(&mut self) -> Vec<u8>[src]

Trait Implementations

impl Clear for MercuryReply[src]

impl Clone for MercuryReply[src]

impl Debug for MercuryReply[src]

impl Default for MercuryReply[src]

impl<'a> Default for &'a MercuryReply[src]

impl Message for MercuryReply[src]

impl PartialEq<MercuryReply> for MercuryReply[src]

impl ProtobufValue for MercuryReply[src]

impl StructuralPartialEq for MercuryReply[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.