I'm home now and able to consult my networking bible. The flow control implementation in ethernet (802.3x) does not use sliding window. All it uses is special pause frames that include a type (pause being the only relevant type) and a value for hold-off time, indicating how long the receiving device should wait before sending more data.
There's all kinds of theoretical flow control mechanisms, sliding window being one of them. Any layer 2 protocol can incorporate any mechanism, but the most used layer 2 protocol is 802.3 (i.e. "ethernet") and the flow control mechanism chosen there is not sliding window.
So the next question is: what layer 2 protocol are you talking about? Ethernet? Token Ring? Fiber Channel?
Check out the following books:
TCP/IP Illustrated, Volume 1: The Protocols: The Protocols v. 1 (Addison-Wesley Professional Computing) https://www.amazon.co.uk/dp/0321336313/ref=cm_sw_r_cp_api_i_HsfhDb3TC15DK
By Gary A. Donahue Network Warrior (2nd Edition) https://www.amazon.co.uk/dp/B00NBJPIV8/ref=cm_sw_r_cp_api_i_ltfhDbJCDDXG7
Yes, yes there is.
Networking is networking. There's no difference who does it.
Regardless, this is a timeless book: https://www.amazon.com/TCP-Illustrated-Protocols-Addison-Wesley-Professional/dp/0321336313