pub struct FileSystemStorage { /* private fields */ }Expand description
ファイルシステムベースのストレージ実装
Implementations§
Trait Implementations§
Source§impl SnapshotStorage for FileSystemStorage
impl SnapshotStorage for FileSystemStorage
Source§fn save(
&self,
key: &SnapshotKey,
snapshot: &LearningSnapshot,
) -> Result<(), Self::Error>
fn save( &self, key: &SnapshotKey, snapshot: &LearningSnapshot, ) -> Result<(), Self::Error>
スナップショットを保存
Source§fn load(
&self,
key: &SnapshotKey,
) -> Result<Option<LearningSnapshot>, Self::Error>
fn load( &self, key: &SnapshotKey, ) -> Result<Option<LearningSnapshot>, Self::Error>
スナップショットをロード
Source§impl TimeSeriesQuery for FileSystemStorage
impl TimeSeriesQuery for FileSystemStorage
Source§fn query_range(
&self,
scenario: &str,
from: Timestamp,
to: Timestamp,
) -> Result<Vec<LearningSnapshot>, Self::Error>
fn query_range( &self, scenario: &str, from: Timestamp, to: Timestamp, ) -> Result<Vec<LearningSnapshot>, Self::Error>
時間範囲でセッションを取得
Source§fn query_latest(
&self,
scenario: &str,
limit: usize,
) -> Result<Vec<LearningSnapshot>, Self::Error>
fn query_latest( &self, scenario: &str, limit: usize, ) -> Result<Vec<LearningSnapshot>, Self::Error>
最新 N 件のセッションを取得
Source§fn list_sessions(&self, scenario: &str) -> Result<Vec<SessionId>, Self::Error>
fn list_sessions(&self, scenario: &str) -> Result<Vec<SessionId>, Self::Error>
シナリオのセッション一覧を取得
Source§fn query_since(
&self,
scenario: &str,
since: Timestamp,
) -> Result<Vec<LearningSnapshot>, Self::Error>
fn query_since( &self, scenario: &str, since: Timestamp, ) -> Result<Vec<LearningSnapshot>, Self::Error>
指定時刻以降のセッションを取得
Auto Trait Implementations§
impl Freeze for FileSystemStorage
impl RefUnwindSafe for FileSystemStorage
impl Send for FileSystemStorage
impl Sync for FileSystemStorage
impl Unpin for FileSystemStorage
impl UnwindSafe for FileSystemStorage
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