pub struct Connection { /* private fields */ }Expand description
A connection is a [local calendar] + [remote calendar] pair
Implementations§
Source§impl Connection
impl Connection
pub fn new(local: Calendar, remote: Remote) -> Self
pub fn local(&self) -> &Calendar
pub fn remote(&self) -> &Remote
pub fn read_only(&self) -> bool
pub async fn diff( &mut self, range: &DateRange, ) -> Result<CalendarDiff, ConnectionError>
pub fn apply_incoming_diff( &mut self, diff: &CalendarDiff, ) -> Result<(), ConnectionError>
pub async fn apply_outgoing_diff( &mut self, diff: &CalendarDiff, ) -> Result<(), ConnectionError>
pub fn discard_outgoing_diff( &self, diff: &CalendarDiff, ) -> Result<(), ConnectionError>
Auto Trait Implementations§
impl !RefUnwindSafe for Connection
impl !UnwindSafe for Connection
impl Freeze for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
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