pub struct MockRequest {
pub mock_data: Vec<Torrent>,
pub fail_rpc: bool,
}Fields§
§mock_data: Vec<Torrent>§fail_rpc: boolTrait Implementations§
Source§impl Default for MockRequest
impl Default for MockRequest
Source§fn default() -> MockRequest
fn default() -> MockRequest
Returns the “default value” for a type. Read more
Source§impl TorrentCli for MockRequest
impl TorrentCli for MockRequest
fn torrent_action( &mut self, _ids: Vec<String>, _action: TorrentAction, ) -> Result<()>
fn torrent_add(&mut self, _args: TorrentAddArgs) -> Result<TorrentAdded>
fn session_get(&mut self) -> Result<SessionGet>
fn free_space(&mut self, path: String) -> Result<FreeSpace>
fn torrent_get( &mut self, _fields: Option<Vec<TorrentGetField>>, _ids: Option<Vec<Id>>, ) -> Result<Vec<Torrent>>
fn torrent_remove( &mut self, _ids: Vec<String>, _delete_local_data: bool, ) -> Result<()>
fn set_location( &mut self, _ids: Vec<String>, _mv: bool, _location: String, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for MockRequest
impl RefUnwindSafe for MockRequest
impl Send for MockRequest
impl Sync for MockRequest
impl Unpin for MockRequest
impl UnsafeUnpin for MockRequest
impl UnwindSafe for MockRequest
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more