pub struct Http {
pub url: Url,
pub channel: String,
pub client: Client,
pub name: String,
pub headers: Vec<(String, String)>,
}
Fields§
§url: Url
§channel: String
§client: Client
§name: String
§headers: Vec<(String, String)>
Implementations§
Source§impl Http
impl Http
pub async fn download_changes( &mut self, progress_bar: ProgressBar, hashes: &mut UnboundedReceiver<CS>, send: &mut Sender<(CS, bool)>, path: &PathBuf, _full: bool, ) -> Result<(), Error>
pub async fn upload_changes( &self, progress_bar: ProgressBar, local: PathBuf, to_channel: Option<&str>, changes: &[CS], ) -> Result<(), Error>
pub async fn download_changelist<A, F: FnMut(&mut A, u64, Hash, Merkle, bool) -> Result<(), Error>>( &self, f: F, a: &mut A, from: u64, paths: &[String], ) -> Result<HashSet<Position<Hash>>, Error>
pub async fn get_state( &mut self, mid: Option<u64>, ) -> Result<Option<(u64, Merkle, Merkle)>, Error>
pub async fn get_id(&self) -> Result<Option<RemoteId>, Error>
pub async fn archive<W: Write + Send + 'static>( &mut self, prefix: Option<String>, state: Option<(Merkle, &[Hash])>, w: W, ) -> Result<u64, Error>
pub async fn update_identities( &mut self, rev: Option<u64>, path: PathBuf, ) -> Result<u64, Error>
pub async fn prove(&mut self, key: SKey) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Http
impl !RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl !UnwindSafe for Http
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