Struct drawbridge_client::Entity
source · [−]pub struct Entity<'a> { /* private fields */ }Implementations
sourceimpl<'a> Entity<'a>
impl<'a> Entity<'a>
pub fn new(client: &'a Client) -> Self
pub fn get(&self) -> Result<(u64, Mime, impl Read)>
pub fn get_to(&self, dst: &mut impl Write) -> Result<(u64, Mime)>
pub fn get_json<T>(&self) -> Result<T> where
for<'de> T: Deserialize<'de>,
pub fn get_bytes(&self) -> Result<(Mime, Vec<u8>)>
pub fn get_string(&self) -> Result<(Mime, String)>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Entity<'a>
impl<'a> Send for Entity<'a>
impl<'a> Sync for Entity<'a>
impl<'a> Unpin for Entity<'a>
impl<'a> !UnwindSafe for Entity<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more