pub struct Amazon { /* private fields */ }Implementations§
Source§impl Amazon
impl Amazon
pub fn new(client: Client<HttpConnector, Body>) -> Self
pub async fn instance(&self, token: Option<&[u8]>) -> Result<Instance, Error>
pub fn scan<'life0, 'life_self, 'async_recursion>(
&'life_self self,
path: &'life0 str,
token: Option<&'async_recursion [u8]>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_recursion>>where
'life0: 'async_recursion,
'async_recursion: 'async_recursion,
'life_self: 'async_recursion,
pub async fn get( &self, path: &str, token: Option<&[u8]>, ) -> Result<Bytes, Error>
pub async fn token(&self, ttl: Duration) -> Result<Vec<u8>, Error>
Auto Trait Implementations§
impl !Freeze for Amazon
impl !RefUnwindSafe for Amazon
impl Send for Amazon
impl Sync for Amazon
impl Unpin for Amazon
impl !UnwindSafe for Amazon
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