pub struct Source { /* private fields */ }Implementations
sourceimpl Source
impl Source
pub fn new(url: Option<String>, key: Option<String>) -> Self
pub fn request(
&self,
method: Method,
url: &str,
buffer: Option<&[u8]>
) -> Result<ReqwestResponse, ReqwestError>
pub fn from_file(self, path: &Path) -> Result<Self, TinifyException>
pub fn from_buffer(self, buffer: &[u8]) -> Self
pub fn from_url(self, url: &str) -> Result<Self, TinifyException>
pub fn get_source_from_response(self, response: ReqwestResponse) -> Self
pub fn to_file(&self, path: &str) -> Result<()>
pub fn to_buffer(&self) -> Vec<u8>
Trait Implementations
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more