pub struct EditConfigBuilder<'a> { /* private fields */ }Expand description
Builder for edit-config operations.
Implementations§
Source§impl<'a> EditConfigBuilder<'a>
impl<'a> EditConfigBuilder<'a>
Sourcepub fn default_operation(self, op: DefaultOperation) -> Self
pub fn default_operation(self, op: DefaultOperation) -> Self
Set the default-operation (merge, replace, none).
Sourcepub fn test_option(self, opt: TestOption) -> Self
pub fn test_option(self, opt: TestOption) -> Self
Set the test-option (test-then-set, set, test-only).
Sourcepub fn error_option(self, opt: ErrorOption) -> Self
pub fn error_option(self, opt: ErrorOption) -> Self
Set the error-option (stop-on-error, continue-on-error, rollback-on-error).
Sourcepub async fn send(self) -> Result<(), NetconfError>
pub async fn send(self) -> Result<(), NetconfError>
Send the edit-config RPC.
Auto Trait Implementations§
impl<'a> Freeze for EditConfigBuilder<'a>
impl<'a> !RefUnwindSafe for EditConfigBuilder<'a>
impl<'a> Send for EditConfigBuilder<'a>
impl<'a> Sync for EditConfigBuilder<'a>
impl<'a> Unpin for EditConfigBuilder<'a>
impl<'a> UnsafeUnpin for EditConfigBuilder<'a>
impl<'a> !UnwindSafe for EditConfigBuilder<'a>
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